package com.bos.domian.base;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import java.io.Serializable;
import java.util.List;

/**
 * @author misterWei
 * @create 2018年11月21号:10点33分
 * @mailbox mynameisweiyan@gmail.com
 */
@XmlRootElement(name = "BaseQuery")
@XmlSeeAlso({Promotion.class}) //泛型必须有它,用来关联的泛型类型
public class BaseQuery<T>  implements Serializable{
    private Long    totalElements; //总记录数
    private Integer currentlyPages; // 当前第第几页
    private List<T> queryList;       //数据
    private Integer pages;      //一共多少页

    public Long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(Long totalElements) {
        this.totalElements = totalElements;
    }

    public Integer getCurrentlyPages() {
        return currentlyPages;
    }

    public void setCurrentlyPages(Integer currentlyPages) {
        this.currentlyPages = currentlyPages;
    }

    public List<T> getQueryList() {
        return queryList;
    }

    public void setQueryList(List<T> queryList) {
        this.queryList = queryList;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }
}
